<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'back.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
   <link rel="stylesheet" href="./CSS/link_text.css" type="text/css">
  </head>
  
  <body  background="IMG/BBS_ground_2.jpg" >
  <%@include file="top.jsp" %>
  
  
  <table width="918px" border="0" cellpadding="0" align="center" height="550px">
</table>
<table width="918" border="1" cellpadding="0" align="center" height="550px">
  <tr>
    <td width="228">
    <a href="userPagination.do"><img src="IMG/back1.png"></img></a> </td>
    <td width="678" rowspan="4" valign="top">
		  <a href="userPagination.do">后台管理</a>&gt;<a href="userPagination.do">用户管理</a><br>
        <font id="text2">搜索用户：</font><input type="text" name="back_post_name">
     <font id="text2"> </font> <br><br>
     
     <hr color="red">
     
     <table width="60%">
     	<tr>
     		<th align="left">用户名</th>
     		<th align="left">邮箱</th>
     		<th align="left">权限</th>
     		<th align="left">详细信息</th>
     	</tr>
     
     <c:forEach items="${users }" var="user">
     	<tr>
     		<td>${user.name }</td>
     		<td>${user.email }</td>
     		<td>${user.role }</td>
     		<td><a href="userDetail.do?name=${user.name }">查看</a></td>
     	</tr>
     </c:forEach>
     </table>
     
     <div id="foot">  
     
     	<a href="userPagination.do?pageIndex=1">首页</a>
     	<a href="userPagination.do?pageIndex=${pageIndex - 1 >= 1? pageIndex - 1: 1 }">上一页</a>
     	<a href="userPagination.do?pageIndex=${pageIndex + 1 <= pageTotal? pageIndex + 1: pageTotal }">下一页</a>
     	<a href="userPagination.do?pageIndex=${pageTotal }">末页</a>
     	<label>${pageIndex }/${pageTotal }</label>
     </div>  
	
    </td>
  </tr>
  <tr>
    <td><a href="back_forum.jsp"><img src="IMG/back2.png"></img></a></td>

  </tr>
  <tr>
    <td><a href="back_post.jsp"><img src="IMG/back3.png"></img></a></td>
 
  </tr>
  <tr>
    <td><a href="back_post_release.jsp"><img src="IMG/back4.png"></img></a></td>

  </tr>
</table>
<%@include file="last.jsp" %>
  </body>
</html>
